#
# Makefile by Peter Lieverdink (me@cafuego.net) for use with Google Earth

# DESTDIR=
PREFIX=$(DESTDIR)/usr/lib/easyubuntu

default:
	@echo "Run 'make install' to install Easyubuntu to $(PREFIX) or"
	@echo "edit the Makefile to choose a different location."

install:
	mkdir -p -m 755 $(DESTDIR)/usr/bin
	mkdir -p -m 755 $(DESTDIR)/usr/lib
	cp -a easyubuntu $(DESTDIR)/usr/lib
	mkdir -p -m 755 $(DESTDIR)/usr/lib/easyubuntu/conf
	touch $(DESTDIR)/usr/lib/easyubuntu/conf/sources.list
	rm $(DESTDIR)/usr/lib/easyubuntu/packagelist-breezy.pot
	rm $(DESTDIR)/usr/lib/easyubuntu/packagelist-dapper.pot
	chown root:root $(DESTDIR)/usr/lib/easyubuntu
	chmod u+rwX,a+rX $(DESTDIR)/usr/lib/easyubuntu
	install -D -m 0644 easyubuntu.desktop $(DESTDIR)/usr/share/applications/easyubuntu.desktop
	ln -s /usr/lib/easyubuntu/wrapper.sh $(DESTDIR)/usr/bin/easyubuntu



clean:
	rm -rf debian/easyubuntu

distclean: clean
